package com.ls.mybatis.core;


/**
 * 构建工厂
 */
public class SqlSessionFactoryBuilder {
    public static SqlSessionFactory  factory = null;

    private SqlSessionFactoryBuilder(){

    }
    public synchronized static SqlSessionFactory build(String config){
        if (factory == null){
            factory = new SqlSessionFactory(config);
        }
        return factory;
    }
}
